#include "gtest/gtest.h"
#include "socket_epoll.h"
#include "spdlog/spdlog.h"

using namespace simple;

void handler(Session *session) {
    spdlog::info("handler, session.fd: {}", session->socketFd());
}

TEST(socket_epoll_test, socketReady) {
    SocketEpoll socket(8080, SOCK_STREAM);
    socket.setHandler(handler);
    if (socket.ready()) {
//        socket.socketWait();
    }
}
